package com.cloudwise.service.impl;

import com.cloudwise.dao.PersonInfoDao;
import com.cloudwise.dao.imp.PersonInfoDaoImpl;
import com.cloudwise.service.PersonInfoService;

import java.util.List;
import java.util.Map;

/**
 * @author ：Teacher陈
 * @date ：Created in 2021/1/25 14:40
 * @description：人员信息业务实现类
 * @modified By：
 * @version: 1
 */
public class PersonInfoServiceimpl  implements PersonInfoService {
    private PersonInfoDao personInfoDao= new PersonInfoDaoImpl();
    @Override
    public List<Map<String, Object>> findAllPerson() {
        return personInfoDao.findAllPerson();
    }

    @Override
    public Map<String, Object> findPersonById(int id) {
        return personInfoDao.findPersonById(id);
    }

    @Override
    public Map<String, Object> findPersonByIdAndName(Map map) {
        return personInfoDao.findPersonByIdAndName(map);
    }

    @Override
    public boolean updatePerson(Map map) {
        return personInfoDao.updatePerson(map);
    }

    @Override
    public List<Map<String, Object>> findAllArea() {
        return personInfoDao.findAllArea();
    }

    @Override
    public boolean savePerson(Map map) {
        return personInfoDao.savePerson(map);
    }

    @Override
    public boolean deletePerson(Map map) {
        return personInfoDao.deletePerson(map);
    }

    @Override
    public String findPersonName(String personId) {
        return personInfoDao.findPersonName(personId);
    }
}
